<?php
/**
 * Created by PhpStorm.
 * User: root
 * Date: 8/15/14
 * Time: 5:13 PM
 */

namespace Admin\Form\Category;

use Zend\Form\Fieldset;
use Zend\InputFilter\InputFilterProviderInterface;
use Zend\Stdlib\Hydrator\ClassMethods;

class CreateCategoryDescriptionFieldset extends Fieldset implements InputFilterProviderInterface
{
    public function __construct()
    {
        parent::__construct('category_description');

        $this
            ->setHydrator(new ClassMethods())
            //->setObject(new UserEntity())
        ;

        $this->add(array(
            'name' => 'name',
            'options' => array(
                'label' => 'Category name',
                'label_attributes' => array(
                    //'class' => 'col-md-3',
                ),
            ),
            'attributes' => array(
                'type' => 'text',
                'class' => 'form-control col-xs-12',
            ),
        ));


        $this->add(array(
            'name' => 'description',
            'type' => 'textarea',
            'options' => array(
                'label' => 'Description',
            ),
            'attributes' => array(
                'class' => 'form-control col-xs-12',
            ),
        ));
    }

    public function getInputFilterSpecification()
    {
        return array(

        );
    }
} 